<!-- 访问页面输入密码，需要可开启 -->
<!-- <SCRIPT language=JavaScript>
    function password() {
        var testV = 1;
        var pass1 = prompt('请输入密码:', '');
        while (testV < 3) {
            if (!pass1)
                history.go(-1);
            if (pass1 == "001029.cn") { //这里输入你想设置的密码
                alert('密码正确!');
                break;
            }
            testV += -1;
            var pass1 = prompt('密码错误!请重新输入:');
        }
        if (pass1 != "password" & testV == 3)
            history.go(-1);
        return " ";
    }
    document.write(password());
</SCRIPT> -->

<?php

//屏蔽错误
error_reporting( 0 );
//引入操作类
require_once 'inc/medoo.php';
//引入数据库
require_once 'inc/conn.php';
//引入配置
require_once 'inc/config.php';

//查询
//$datas = $database->select(dbtable, "*" );

?>

<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title><?php  echo sysname; ?> <?php echo version; ?> - Powered by Y.Z.W</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="inc/layui/css/layui.css" media="all">
</head>

<body>

<?php include("inc/head.php"); ?>

<!-- **********数据表零 开始********** -->
<?php $datas = $database->select(dbtable0, "*", ["w000[<=]"=>10000] );?>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>全部<?php echo cxname0 ?></legend>
</fieldset>
<blockquote class="layui-elem-quote">
    <?php
    //查询合计数据行数
        $count = $database->count(dbtable0, "*");   //<!-- +++++++++++++++修改+++++++++++++++ -->
        echo "合计：" . $count;
    ?>
</blockquote>
<div class="layui-form">
		<table class="layui-table">
			<colgroup>
				<col>
				<col>
				<col>
				<col>
			</colgroup>
			<thead>
				<tr>
					<?php
						if (b000<>"")
						{
							echo "<th>";
							echo b000;
							echo "</th>";
						}
						if (b001<>"")
						{
							echo "<th>";
							echo b001;
							echo "</th>";
						}
						if (b002<>"")
						{
							echo "<th>";
							echo b002;
							echo "</th>";
						}
						if (b003<>"")
						{
							echo "<th>";
							echo b003;
							echo "</th>";
						}
						if (b004<>"")
						{
							echo "<th>";
							echo b004;
							echo "</th>";
						}
						if (b010<>"")
						{
							echo "<th>";
							echo b010;
							echo "</th>";
						}
						if (b011<>"")
						{
							echo "<th>";
							echo b011;
							echo "</th>";
						}
						if (b012<>"")
						{
							echo "<th>";
							echo b012;
							echo "</th>";
						}
						if (b013<>"")
						{
							echo "<th>";
							echo b013;
							echo "</th>";
						}
						if (b014<>"")
						{
							echo "<th>";
							echo b014;
							echo "</th>";
						}
						if (b015<>"")
						{
							echo "<th>";
							echo b015;
							echo "</th>";
						}
						if (b016<>"")
						{
							echo "<th>";
							echo b016;
							echo "</th>";
						}
						if (b017<>"")
						{
							echo "<th>";
							echo b017;
							echo "</th>";
						}
						if (b018<>"")
						{
							echo "<th>";
							echo b018;
							echo "</th>";
						}
						if (b019<>"")
						{
							echo "<th>";
							echo b019;
							echo "</th>";
						}
						if (b020xs<>"")
						{
							echo "<th>";
							echo b020;
							echo "</th>";
						}
					?>
				</tr>
			</thead>
			<tbody>

				<?php 
					foreach($datas as $data)
					{
						echo "<tr>";
						if (b000<>"")
						{
							echo "<td>";
							echo $data["w000"] ;
							echo "</td>";
						}
						if (b001<>"")
						{
							echo "<td>";	
							echo $data["w001"];
							echo "</td>";
						}
						if (b002<>"")
						{
							echo "<td>";	
							echo $data["w002"];
							echo "</td>";
						}
						if (b003<>"")
						{
							echo "<td>";	
							echo "<a href='https://www.baidu.com/s?wd=".$data['w003']."' target='_blank'>".$data['w003'];
							echo "</td>";
						}
						if (b004<>"")
						{
							echo "<td>";	
							echo "<a href='https://www.baidu.com/s?wd=".$data['w004']."' target='_blank'>".$data['w004'];
							echo "</td>";
						}

						if (b010<>"")
						{
							echo "<td>";	
							echo $data["w100"];
							echo "</td>";
						}
						if (b011<>"")
						{
							echo "<td>";	
							echo $data["w101"];
							echo "</td>";
						}
						if (b012<>"")
						{
							echo "<td>";	
							echo $data["w102"];
							echo "</td>";
						}
						if (b013<>"")
						{
							echo "<td>";	
							echo $data["w103"];
							echo "</td>";
						}
						if (b014<>"")
						{
							echo "<td>";	
							echo $data["w104"];
							echo "</td>";
						}
						if (b015<>"")
						{
							echo "<td>";	
							echo $data["w105"];
							echo "</td>";
						}
						if (b016<>"")
						{
							echo "<td>";	
							echo $data["w106"];
							echo "</td>";
						}
						if (b017<>"")
						{
							echo "<td>";	
							echo $data["w107"];
							echo "</td>";
						}
						if (b018<>"")
						{
							echo "<td>";	
							echo $data["w108"];
							echo "</td>";
						}
						if (b019<>"")
						{
							echo "<td>";	
							echo $data["w109"];
							echo "</td>";				
						}
						if (b020xs<>"")
						{
							echo "<td>";
							echo "<a class='layui-btn layui-btn-primary layui-btn-xs' lay-event='detail' href='yzw_tab0/huifu.php?id=".$data["w000"]."'>回复</a>";
							echo "<a class='layui-btn layui-btn-xs' lay-event='edit' href='yzw_tab0/xiugai.php?id=".$data["w000"]."'>修改</a>";
							echo "<a class='layui-btn layui-btn-danger layui-btn-xs' lay-event='del' href='yzw_tab0/shanchuing.php?id=".$data["w000"]."'>删除</a>";
							echo "</td>";
						}
						echo "</tr>";
					}
					echo "</table>";
						?>
			</tbody>
		</table>
	</div>
<!-- **********数据表零 结束********** -->

<!-- **********数据表一 开始********** -->
<?php $datas = $database->select(dbtable1, "*", ["w000[<=]"=>10000] );?>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>全部<?php echo cxname1 ?></legend>
</fieldset>
<blockquote class="layui-elem-quote">
    <?php
    //查询合计数据行数
        $count = $database->count(dbtable1, "*");   //<!-- +++++++++++++++修改+++++++++++++++ -->
        echo "合计：" . $count;
    ?>
</blockquote>
<div class="layui-form">
		<table class="layui-table">
			<colgroup>
				<col>
				<col>
				<col>
				<col>
			</colgroup>
			<thead>
				<tr>
					<?php
						if (b100<>"")
						{
							echo "<th>";
							echo b100;
							echo "</th>";
						}
						if (b101<>"")
						{
							echo "<th>";
							echo b101;
							echo "</th>";
						}
						if (b102<>"")
						{
							echo "<th>";
							echo b102;
							echo "</th>";
						}
						if (b103<>"")
						{
							echo "<th>";
							echo b103;
							echo "</th>";
						}
						if (b104<>"")
						{
							echo "<th>";
							echo b104;
							echo "</th>";
						}
						if (b110<>"")
						{
							echo "<th>";
							echo b110;
							echo "</th>";
						}
						if (b111<>"")
						{
							echo "<th>";
							echo b111;
							echo "</th>";
						}
						if (b112<>"")
						{
							echo "<th>";
							echo b112;
							echo "</th>";
						}
						if (b113<>"")
						{
							echo "<th>";
							echo b113;
							echo "</th>";
						}
						if (b114<>"")
						{
							echo "<th>";
							echo b114;
							echo "</th>";
						}
						if (b115<>"")
						{
							echo "<th>";
							echo b115;
							echo "</th>";
						}
						if (b116<>"")
						{
							echo "<th>";
							echo b116;
							echo "</th>";
						}
						if (b117<>"")
						{
							echo "<th>";
							echo b117;
							echo "</th>";
						}
						if (b118<>"")
						{
							echo "<th>";
							echo b118;
							echo "</th>";
						}
						if (b119<>"")
						{
							echo "<th>";
							echo b119;
							echo "</th>";
						}
						if (b120xs<>"")
						{
							echo "<th>";
							echo b120;
							echo "</th>";
						}
					?>
				</tr>
			</thead>
			<tbody>

				<?php 
					foreach($datas as $data)
					{
						echo "<tr>";
						if (b100<>"")
						{
							echo "<td>";
							echo $data["w000"] ;
							echo "</td>";
						}
						if (b101<>"")
						{
							echo "<td>";	
							echo $data["w001"];
							echo "</td>";
						}
						if (b102<>"")
						{
							echo "<td>";	
							echo $data["w002"];
							echo "</td>";
						}
						if (b103<>"")
						{
							echo "<td>";	
							echo "<a href='https://www.baidu.com/s?wd=".$data['w003']."' target='_blank'>".$data['w003'];
							echo "</td>";
						}
						if (b104<>"")
						{
							echo "<td>";	
							echo "<a href='https://www.baidu.com/s?wd=".$data['w004']."' target='_blank'>".$data['w004'];
							echo "</td>";
						}

						if (b110<>"")
						{
							echo "<td>";	
							echo $data["w100"];
							echo "</td>";
						}
						if (b111<>"")
						{
							echo "<td>";	
							echo $data["w101"];
							echo "</td>";
						}
						if (b112<>"")
						{
							echo "<td>";	
							echo $data["w102"];
							echo "</td>";
						}
						if (b113<>"")
						{
							echo "<td>";	
							echo $data["w103"];
							echo "</td>";
						}
						if (b114<>"")
						{
							echo "<td>";	
							echo $data["w104"];
							echo "</td>";
						}
						if (b115<>"")
						{
							echo "<td>";	
							echo $data["w105"];
							echo "</td>";
						}
						if (b116<>"")
						{
							echo "<td>";	
							echo $data["w106"];
							echo "</td>";
						}
						if (b117<>"")
						{
							echo "<td>";	
							echo $data["w107"];
							echo "</td>";
						}
						if (b118<>"")
						{
							echo "<td>";	
							echo $data["w108"];
							echo "</td>";
						}
						if (b119<>"")
						{
							echo "<td>";	
							echo $data["w109"];
							echo "</td>";				
						}
						if (b120xs<>"")
						{
							echo "<td>";
							echo "<a class='layui-btn layui-btn-primary layui-btn-xs' lay-event='detail' href='yzw_tab1/huifu.php?id=".$data["w000"]."'>回复</a>";
							echo "<a class='layui-btn layui-btn-xs' lay-event='edit' href='yzw_tab1/xiugai.php?id=".$data["w000"]."'>修改</a>";
							echo "<a class='layui-btn layui-btn-danger layui-btn-xs' lay-event='del' href='yzw_tab1/shanchuing.php?id=".$data["w000"]."'>删除</a>";
							echo "</td>";
						}
						echo "</tr>";
					}
					echo "</table>";
						?>
			</tbody>
		</table>
	</div>
<!-- **********数据表一 结束********** -->

<!-- **********数据表二 开始********** -->
<?php $datas = $database->select(dbtable2, "*", ["w000[<=]"=>10000] );?>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>全部<?php echo cxname2 ?></legend>
</fieldset>
<blockquote class="layui-elem-quote">
    <?php
    //查询合计数据行数
        $count = $database->count(dbtable2, "*");   //<!-- +++++++++++++++修改+++++++++++++++ -->
        echo "合计：" . $count;
    ?>
</blockquote>
<div class="layui-form">
		<table class="layui-table">
			<colgroup>
				<col>
				<col>
				<col>
				<col>
			</colgroup>
			<thead>
				<tr>
					<?php
						if (b200<>"")
						{
							echo "<th>";
							echo b200;
							echo "</th>";
						}
						if (b201<>"")
						{
							echo "<th>";
							echo b201;
							echo "</th>";
						}
						if (b202<>"")
						{
							echo "<th>";
							echo b202;
							echo "</th>";
						}
						if (b203<>"")
						{
							echo "<th>";
							echo b203;
							echo "</th>";
						}
						if (b204<>"")
						{
							echo "<th>";
							echo b204;
							echo "</th>";
						}
						if (b210<>"")
						{
							echo "<th>";
							echo b210;
							echo "</th>";
						}
						if (b211<>"")
						{
							echo "<th>";
							echo b211;
							echo "</th>";
						}
						if (b212<>"")
						{
							echo "<th>";
							echo b212;
							echo "</th>";
						}
						if (b213<>"")
						{
							echo "<th>";
							echo b213;
							echo "</th>";
						}
						if (b214<>"")
						{
							echo "<th>";
							echo b214;
							echo "</th>";
						}
						if (b215<>"")
						{
							echo "<th>";
							echo b215;
							echo "</th>";
						}
						if (b216<>"")
						{
							echo "<th>";
							echo b216;
							echo "</th>";
						}
						if (b217<>"")
						{
							echo "<th>";
							echo b217;
							echo "</th>";
						}
						if (b218<>"")
						{
							echo "<th>";
							echo b218;
							echo "</th>";
						}
						if (b219<>"")
						{
							echo "<th>";
							echo b219;
							echo "</th>";
						}
						if (b220xs<>"")
						{
							echo "<th>";
							echo b220;
							echo "</th>";
						}
					?>
				</tr>
			</thead>
			<tbody>

				<?php 
					foreach($datas as $data)
					{
						echo "<tr>";
						if (b200<>"")
						{
							echo "<td>";
							echo $data["w000"] ;
							echo "</td>";
						}
						if (b201<>"")
						{
							echo "<td>";	
							echo $data["w001"];
							echo "</td>";
						}
						if (b202<>"")
						{
							echo "<td>";	
							echo $data["w002"];
							echo "</td>";
						}
						if (b203<>"")
						{
							echo "<td>";	
							echo "<a href='https://www.baidu.com/s?wd=".$data['w003']."' target='_blank'>".$data['w003'];
							echo "</td>";
						}
						if (b204<>"")
						{
							echo "<td>";	
							echo "<a href='https://www.baidu.com/s?wd=".$data['w004']."' target='_blank'>".$data['w004'];
							echo "</td>";
						}

						if (b210<>"")
						{
							echo "<td>";	
							echo $data["w100"];
							echo "</td>";
						}
						if (b211<>"")
						{
							echo "<td>";	
							echo $data["w101"];
							echo "</td>";
						}
						if (b212<>"")
						{
							echo "<td>";	
							echo $data["w102"];
							echo "</td>";
						}
						if (b213<>"")
						{
							echo "<td>";	
							echo $data["w103"];
							echo "</td>";
						}
						if (b214<>"")
						{
							echo "<td>";	
							echo $data["w104"];
							echo "</td>";
						}
						if (b215<>"")
						{
							echo "<td>";	
							echo $data["w105"];
							echo "</td>";
						}
						if (b216<>"")
						{
							echo "<td>";	
							echo $data["w106"];
							echo "</td>";
						}
						if (b217<>"")
						{
							echo "<td>";	
							echo $data["w107"];
							echo "</td>";
						}
						if (b218<>"")
						{
							echo "<td>";	
							echo $data["w108"];
							echo "</td>";
						}
						if (b219<>"")
						{
							echo "<td>";	
							echo $data["w109"];
							echo "</td>";				
						}
						if (b220xs<>"")
						{
							echo "<td>";
							echo "<a class='layui-btn layui-btn-primary layui-btn-xs' lay-event='detail' href='yzw_tab2/huifu.php?id=".$data["w000"]."'>回复</a>";
							echo "<a class='layui-btn layui-btn-xs' lay-event='edit' href='yzw_tab2/xiugai.php?id=".$data["w000"]."'>修改</a>";
							echo "<a class='layui-btn layui-btn-danger layui-btn-xs' lay-event='del' href='yzw_tab2/shanchuing.php?id=".$data["w000"]."'>删除</a>";
							echo "</td>";
						}
						echo "</tr>";
					}
					echo "</table>";
						?>
			</tbody>
		</table>
	</div>
<!-- **********数据表二 结束********** -->

<!-- **********数据表三 开始********** -->
<?php $datas = $database->select(dbtable3, "*", ["w000[<=]"=>10000] );?>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>全部<?php echo cxname3 ?></legend>
</fieldset>
<blockquote class="layui-elem-quote">
    <?php
    //查询合计数据行数
        $count = $database->count(dbtable3, "*");   //<!-- +++++++++++++++修改+++++++++++++++ -->
        echo "合计：" . $count;
    ?>
</blockquote>
<div class="layui-form">
		<table class="layui-table">
			<colgroup>
				<col>
				<col>
				<col>
				<col>
			</colgroup>
			<thead>
				<tr>
					<?php
						if (b300<>"")
						{
							echo "<th>";
							echo b300;
							echo "</th>";
						}
						if (b301<>"")
						{
							echo "<th>";
							echo b301;
							echo "</th>";
						}
						if (b302<>"")
						{
							echo "<th>";
							echo b302;
							echo "</th>";
						}
						if (b303<>"")
						{
							echo "<th>";
							echo b303;
							echo "</th>";
						}
						if (b304<>"")
						{
							echo "<th>";
							echo b304;
							echo "</th>";
						}
						if (b310<>"")
						{
							echo "<th>";
							echo b310;
							echo "</th>";
						}
						if (b311<>"")
						{
							echo "<th>";
							echo b311;
							echo "</th>";
						}
						if (b312<>"")
						{
							echo "<th>";
							echo b312;
							echo "</th>";
						}
						if (b313<>"")
						{
							echo "<th>";
							echo b313;
							echo "</th>";
						}
						if (b314<>"")
						{
							echo "<th>";
							echo b314;
							echo "</th>";
						}
						if (b315<>"")
						{
							echo "<th>";
							echo b315;
							echo "</th>";
						}
						if (b316<>"")
						{
							echo "<th>";
							echo b316;
							echo "</th>";
						}
						if (b317<>"")
						{
							echo "<th>";
							echo b317;
							echo "</th>";
						}
						if (b318<>"")
						{
							echo "<th>";
							echo b318;
							echo "</th>";
						}
						if (b319<>"")
						{
							echo "<th>";
							echo b319;
							echo "</th>";
						}
						if (b320xs<>"")
						{
							echo "<th>";
							echo b320;
							echo "</th>";
						}
					?>
				</tr>
			</thead>
			<tbody>

				<?php 
					foreach($datas as $data)
					{
						echo "<tr>";
						if (b300<>"")
						{
							echo "<td>";
							echo $data["w000"] ;
							echo "</td>";
						}
						if (b301<>"")
						{
							echo "<td>";	
							echo $data["w001"];
							echo "</td>";
						}
						if (b302<>"")
						{
							echo "<td>";	
							echo $data["w002"];
							echo "</td>";
						}
						if (b303<>"")
						{
							echo "<td>";	
							echo "<a href='https://www.baidu.com/s?wd=".$data['w003']."' target='_blank'>".$data['w003'];
							echo "</td>";
						}
						if (b304<>"")
						{
							echo "<td>";	
							echo "<a href='https://www.baidu.com/s?wd=".$data['w004']."' target='_blank'>".$data['w004'];
							echo "</td>";
						}

						if (b310<>"")
						{
							echo "<td>";	
							echo $data["w100"];
							echo "</td>";
						}
						if (b311<>"")
						{
							echo "<td>";	
							echo $data["w101"];
							echo "</td>";
						}
						if (b312<>"")
						{
							echo "<td>";	
							echo $data["w102"];
							echo "</td>";
						}
						if (b313<>"")
						{
							echo "<td>";	
							echo $data["w103"];
							echo "</td>";
						}
						if (b314<>"")
						{
							echo "<td>";	
							echo $data["w104"];
							echo "</td>";
						}
						if (b315<>"")
						{
							echo "<td>";	
							echo $data["w105"];
							echo "</td>";
						}
						if (b316<>"")
						{
							echo "<td>";	
							echo $data["w106"];
							echo "</td>";
						}
						if (b317<>"")
						{
							echo "<td>";	
							echo $data["w107"];
							echo "</td>";
						}
						if (b318<>"")
						{
							echo "<td>";	
							echo $data["w108"];
							echo "</td>";
						}
						if (b319<>"")
						{
							echo "<td>";	
							echo $data["w109"];
							echo "</td>";				
						}
						if (b320xs<>"")
						{
							echo "<td>";
							echo "<a class='layui-btn layui-btn-primary layui-btn-xs' lay-event='detail' href='yzw_tab3/huifu.php?id=".$data["w000"]."'>回复</a>";
							echo "<a class='layui-btn layui-btn-xs' lay-event='edit' href='yzw_tab3/xiugai.php?id=".$data["w000"]."'>修改</a>";
							echo "<a class='layui-btn layui-btn-danger layui-btn-xs' lay-event='del' href='yzw_tab3/shanchuing.php?id=".$data["w000"]."'>删除</a>";
							echo "</td>";
						}
						echo "</tr>";
					}
					echo "</table>";
						?>
			</tbody>
		</table>
	</div>
<!-- **********数据表三 结束********** -->

<!-- **********数据表四 开始********** -->
<?php $datas = $database->select(dbtable4, "*", ["w000[<=]"=>10000] );?>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>全部<?php echo cxname4 ?></legend>
</fieldset>
<blockquote class="layui-elem-quote">
    <?php
    //查询合计数据行数
        $count = $database->count(dbtable4, "*");   //<!-- +++++++++++++++修改+++++++++++++++ -->
        echo "合计：" . $count;
    ?>
</blockquote>
<div class="layui-form">
		<table class="layui-table">
			<colgroup>
				<col>
				<col>
				<col>
				<col>
			</colgroup>
			<thead>
				<tr>
					<?php
						if (b400<>"")
						{
							echo "<th>";
							echo b400;
							echo "</th>";
						}
						if (b401<>"")
						{
							echo "<th>";
							echo b401;
							echo "</th>";
						}
						if (b402<>"")
						{
							echo "<th>";
							echo b402;
							echo "</th>";
						}
						if (b403<>"")
						{
							echo "<th>";
							echo b403;
							echo "</th>";
						}
						if (b404<>"")
						{
							echo "<th>";
							echo b404;
							echo "</th>";
						}
						if (b410<>"")
						{
							echo "<th>";
							echo b410;
							echo "</th>";
						}
						if (b411<>"")
						{
							echo "<th>";
							echo b411;
							echo "</th>";
						}
						if (b412<>"")
						{
							echo "<th>";
							echo b412;
							echo "</th>";
						}
						if (b413<>"")
						{
							echo "<th>";
							echo b413;
							echo "</th>";
						}
						if (b414<>"")
						{
							echo "<th>";
							echo b414;
							echo "</th>";
						}
						if (b415<>"")
						{
							echo "<th>";
							echo b415;
							echo "</th>";
						}
						if (b416<>"")
						{
							echo "<th>";
							echo b416;
							echo "</th>";
						}
						if (b417<>"")
						{
							echo "<th>";
							echo b417;
							echo "</th>";
						}
						if (b418<>"")
						{
							echo "<th>";
							echo b418;
							echo "</th>";
						}
						if (b419<>"")
						{
							echo "<th>";
							echo b419;
							echo "</th>";
						}
						if (b420xs<>"")
						{
							echo "<th>";
							echo b420;
							echo "</th>";
						}
					?>
				</tr>
			</thead>
			<tbody>

				<?php 
					foreach($datas as $data)
					{
						echo "<tr>";
						if (b400<>"")
						{
							echo "<td>";
							echo $data["w000"] ;
							echo "</td>";
						}
						if (b401<>"")
						{
							echo "<td>";	
							echo $data["w001"];
							echo "</td>";
						}
						if (b402<>"")
						{
							echo "<td>";	
							echo $data["w002"];
							echo "</td>";
						}
						if (b403<>"")
						{
							echo "<td>";	
							echo "<a href='https://www.baidu.com/s?wd=".$data['w003']."' target='_blank'>".$data['w003'];
							echo "</td>";
						}
						if (b404<>"")
						{
							echo "<td>";	
							echo "<a href='https://www.baidu.com/s?wd=".$data['w004']."' target='_blank'>".$data['w004'];
							echo "</td>";
						}

						if (b410<>"")
						{
							echo "<td>";	
							echo $data["w100"];
							echo "</td>";
						}
						if (b411<>"")
						{
							echo "<td>";	
							echo $data["w101"];
							echo "</td>";
						}
						if (b412<>"")
						{
							echo "<td>";	
							echo $data["w102"];
							echo "</td>";
						}
						if (b413<>"")
						{
							echo "<td>";	
							echo $data["w103"];
							echo "</td>";
						}
						if (b414<>"")
						{
							echo "<td>";	
							echo $data["w104"];
							echo "</td>";
						}
						if (b415<>"")
						{
							echo "<td>";	
							echo $data["w105"];
							echo "</td>";
						}
						if (b416<>"")
						{
							echo "<td>";	
							echo $data["w106"];
							echo "</td>";
						}
						if (b417<>"")
						{
							echo "<td>";	
							echo $data["w107"];
							echo "</td>";
						}
						if (b418<>"")
						{
							echo "<td>";	
							echo $data["w108"];
							echo "</td>";
						}
						if (b419<>"")
						{
							echo "<td>";	
							echo $data["w109"];
							echo "</td>";				
						}
						if (b420xs<>"")
						{
							echo "<td>";
							echo "<a class='layui-btn layui-btn-primary layui-btn-xs' lay-event='detail' href='yzw_tab4/huifu.php?id=".$data["w000"]."'>回复</a>";
							echo "<a class='layui-btn layui-btn-xs' lay-event='edit' href='yzw_tab4/xiugai.php?id=".$data["w000"]."'>修改</a>";
							echo "<a class='layui-btn layui-btn-danger layui-btn-xs' lay-event='del' href='yzw_tab4/shanchuing.php?id=".$data["w000"]."'>删除</a>";
							echo "</td>";
						}
						echo "</tr>";
					}
					echo "</table>";
						?>
			</tbody>
		</table>
	</div>
<!-- **********数据表四 结束********** -->

<!-- **********数据表五 开始********** -->
<?php $datas = $database->select(dbtable5, "*", ["w000[<=]"=>10000] );?>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>全部<?php echo cxname5 ?></legend>
</fieldset>
<blockquote class="layui-elem-quote">
    <?php
    //查询合计数据行数
        $count = $database->count(dbtable5, "*");   //<!-- +++++++++++++++修改+++++++++++++++ -->
        echo "合计：" . $count;
    ?>
</blockquote>
<div class="layui-form">
		<table class="layui-table">
			<colgroup>
				<col>
				<col>
				<col>
				<col>
			</colgroup>
			<thead>
				<tr>
					<?php
						if (b500<>"")
						{
							echo "<th>";
							echo b500;
							echo "</th>";
						}
						if (b501<>"")
						{
							echo "<th>";
							echo b501;
							echo "</th>";
						}
						if (b502<>"")
						{
							echo "<th>";
							echo b502;
							echo "</th>";
						}
						if (b503<>"")
						{
							echo "<th>";
							echo b503;
							echo "</th>";
						}
						if (b504<>"")
						{
							echo "<th>";
							echo b504;
							echo "</th>";
						}
						if (b510<>"")
						{
							echo "<th>";
							echo b510;
							echo "</th>";
						}
						if (b511<>"")
						{
							echo "<th>";
							echo b511;
							echo "</th>";
						}
						if (b512<>"")
						{
							echo "<th>";
							echo b512;
							echo "</th>";
						}
						if (b513<>"")
						{
							echo "<th>";
							echo b513;
							echo "</th>";
						}
						if (b514<>"")
						{
							echo "<th>";
							echo b514;
							echo "</th>";
						}
						if (b515<>"")
						{
							echo "<th>";
							echo b515;
							echo "</th>";
						}
						if (b516<>"")
						{
							echo "<th>";
							echo b516;
							echo "</th>";
						}
						if (b517<>"")
						{
							echo "<th>";
							echo b517;
							echo "</th>";
						}
						if (b518<>"")
						{
							echo "<th>";
							echo b518;
							echo "</th>";
						}
						if (b519<>"")
						{
							echo "<th>";
							echo b519;
							echo "</th>";
						}
						if (b520xs<>"")
						{
							echo "<th>";
							echo b520;
							echo "</th>";
						}
					?>
				</tr>
			</thead>
			<tbody>

				<?php 
					foreach($datas as $data)
					{
						echo "<tr>";
						if (b500<>"")
						{
							echo "<td>";
							echo $data["w000"] ;
							echo "</td>";
						}
						if (b501<>"")
						{
							echo "<td>";	
							echo $data["w001"];
							echo "</td>";
						}
						if (b502<>"")
						{
							echo "<td>";	
							echo $data["w002"];
							echo "</td>";
						}
						if (b503<>"")
						{
							echo "<td>";	
							echo "<a href='https://www.baidu.com/s?wd=".$data['w003']."' target='_blank'>".$data['w003'];
							echo "</td>";
						}
						if (b504<>"")
						{
							echo "<td>";	
							echo "<a href='https://www.baidu.com/s?wd=".$data['w004']."' target='_blank'>".$data['w004'];
							echo "</td>";
						}

						if (b510<>"")
						{
							echo "<td>";	
							echo $data["w100"];
							echo "</td>";
						}
						if (b511<>"")
						{
							echo "<td>";	
							echo $data["w101"];
							echo "</td>";
						}
						if (b512<>"")
						{
							echo "<td>";	
							echo $data["w102"];
							echo "</td>";
						}
						if (b513<>"")
						{
							echo "<td>";	
							echo $data["w103"];
							echo "</td>";
						}
						if (b514<>"")
						{
							echo "<td>";	
							echo $data["w104"];
							echo "</td>";
						}
						if (b515<>"")
						{
							echo "<td>";	
							echo $data["w105"];
							echo "</td>";
						}
						if (b516<>"")
						{
							echo "<td>";	
							echo $data["w106"];
							echo "</td>";
						}
						if (b517<>"")
						{
							echo "<td>";	
							echo $data["w107"];
							echo "</td>";
						}
						if (b518<>"")
						{
							echo "<td>";	
							echo $data["w108"];
							echo "</td>";
						}
						if (b519<>"")
						{
							echo "<td>";	
							echo $data["w109"];
							echo "</td>";				
						}
						if (b520xs<>"")
						{
							echo "<td>";
							echo "<a class='layui-btn layui-btn-primary layui-btn-xs' lay-event='detail' href='yzw_tab5/huifu.php?id=".$data["w000"]."'>回复</a>";
							echo "<a class='layui-btn layui-btn-xs' lay-event='edit' href='yzw_tab5/xiugai.php?id=".$data["w000"]."'>修改</a>";
							echo "<a class='layui-btn layui-btn-danger layui-btn-xs' lay-event='del' href='yzw_tab5/shanchuing.php?id=".$data["w000"]."'>删除</a>";
							echo "</td>";
						}
						echo "</tr>";
					}
					echo "</table>";
						?>
			</tbody>
		</table>
	</div>
<!-- **********数据表五 结束********** -->
	
<?php include("inc/foot.php"); ?>

</body>
</html>